Integrand size = 23, antiderivative size = 100 \[ \int \frac {a+b \arctan (c x)}{x^2 \sqrt {d+e x^2}} \, dx=-\frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{d x}-\frac {b c \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{\sqrt {d}}+\frac {b \sqrt {c^2 d-e} \text {arctanh}\left (\frac {c \sqrt {d+e x^2}}{\sqrt {c^2 d-e}}\right )}{d} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {270, 5096, 457, 85, 65, 214} \[ \int \frac {a+b \arctan (c x)}{x^2 \sqrt {d+e x^2}} \, dx=-\frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{d x}+\frac {b \sqrt {c^2 d-e} \text {arctanh}\left (\frac {c \sqrt {d+e x^2}}{\sqrt {c^2 d-e}}\right )}{d}-\frac {b c \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{\sqrt {d}} \]
[In]
[Out]
Rule 65
Rule 85
Rule 214
Rule 270
Rule 457
Rule 5096
Rubi steps \begin{align*} \text {integral}& = -\frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{d x}-(b c) \int \frac {\sqrt {d+e x^2}}{x \left (-d-c^2 d x^2\right )} \, dx \\ & = -\frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{d x}-\frac {1}{2} (b c) \text {Subst}\left (\int \frac {\sqrt {d+e x}}{x \left (-d-c^2 d x\right )} \, dx,x,x^2\right ) \\ & = -\frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{d x}+\frac {1}{2} (b c) \text {Subst}\left (\int \frac {1}{x \sqrt {d+e x}} \, dx,x,x^2\right )+\frac {1}{2} \left (b c \left (c^2 d-e\right )\right ) \text {Subst}\left (\int \frac {1}{\left (-d-c^2 d x\right ) \sqrt {d+e x}} \, dx,x,x^2\right ) \\ & = -\frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{d x}+\frac {(b c) \text {Subst}\left (\int \frac {1}{-\frac {d}{e}+\frac {x^2}{e}} \, dx,x,\sqrt {d+e x^2}\right )}{e}+\frac {\left (b c \left (c^2 d-e\right )\right ) \text {Subst}\left (\int \frac {1}{-d+\frac {c^2 d^2}{e}-\frac {c^2 d x^2}{e}} \, dx,x,\sqrt {d+e x^2}\right )}{e} \\ & = -\frac {\sqrt {d+e x^2} (a+b \arctan (c x))}{d x}-\frac {b c \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{\sqrt {d}}+\frac {b \sqrt {c^2 d-e} \text {arctanh}\left (\frac {c \sqrt {d+e x^2}}{\sqrt {c^2 d-e}}\right )}{d} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.34 (sec) , antiderivative size = 247, normalized size of antiderivative = 2.47 \[ \int \frac {a+b \arctan (c x)}{x^2 \sqrt {d+e x^2}} \, dx=\frac {-2 a \sqrt {d+e x^2}-2 b \sqrt {d+e x^2} \arctan (c x)+2 b c \sqrt {d} x \log (x)-2 b c \sqrt {d} x \log \left (d+\sqrt {d} \sqrt {d+e x^2}\right )+b \sqrt {c^2 d-e} x \log \left (-\frac {4 c d \left (c d-i e x+\sqrt {c^2 d-e} \sqrt {d+e x^2}\right )}{b \left (c^2 d-e\right )^{3/2} (i+c x)}\right )+b \sqrt {c^2 d-e} x \log \left (-\frac {4 c d \left (c d+i e x+\sqrt {c^2 d-e} \sqrt {d+e x^2}\right )}{b \left (c^2 d-e\right )^{3/2} (-i+c x)}\right )}{2 d x} \]
[In]
[Out]
\[\int \frac {a +b \arctan \left (c x \right )}{x^{2} \sqrt {e \,x^{2}+d}}d x\]
[In]
[Out]
none
Time = 0.34 (sec) , antiderivative size = 660, normalized size of antiderivative = 6.60 \[ \int \frac {a+b \arctan (c x)}{x^2 \sqrt {d+e x^2}} \, dx=\left [\frac {2 \, b c \sqrt {d} x \log \left (-\frac {e x^{2} - 2 \, \sqrt {e x^{2} + d} \sqrt {d} + 2 \, d}{x^{2}}\right ) + \sqrt {c^{2} d - e} b x \log \left (\frac {c^{4} e^{2} x^{4} + 8 \, c^{4} d^{2} - 8 \, c^{2} d e + 2 \, {\left (4 \, c^{4} d e - 3 \, c^{2} e^{2}\right )} x^{2} + 4 \, {\left (c^{3} e x^{2} + 2 \, c^{3} d - c e\right )} \sqrt {c^{2} d - e} \sqrt {e x^{2} + d} + e^{2}}{c^{4} x^{4} + 2 \, c^{2} x^{2} + 1}\right ) - 4 \, \sqrt {e x^{2} + d} {\left (b \arctan \left (c x\right ) + a\right )}}{4 \, d x}, \frac {b c \sqrt {d} x \log \left (-\frac {e x^{2} - 2 \, \sqrt {e x^{2} + d} \sqrt {d} + 2 \, d}{x^{2}}\right ) + \sqrt {-c^{2} d + e} b x \arctan \left (-\frac {{\left (c^{2} e x^{2} + 2 \, c^{2} d - e\right )} \sqrt {-c^{2} d + e} \sqrt {e x^{2} + d}}{2 \, {\left (c^{3} d^{2} - c d e + {\left (c^{3} d e - c e^{2}\right )} x^{2}\right )}}\right ) - 2 \, \sqrt {e x^{2} + d} {\left (b \arctan \left (c x\right ) + a\right )}}{2 \, d x}, \frac {4 \, b c \sqrt {-d} x \arctan \left (\frac {\sqrt {-d}}{\sqrt {e x^{2} + d}}\right ) + \sqrt {c^{2} d - e} b x \log \left (\frac {c^{4} e^{2} x^{4} + 8 \, c^{4} d^{2} - 8 \, c^{2} d e + 2 \, {\left (4 \, c^{4} d e - 3 \, c^{2} e^{2}\right )} x^{2} + 4 \, {\left (c^{3} e x^{2} + 2 \, c^{3} d - c e\right )} \sqrt {c^{2} d - e} \sqrt {e x^{2} + d} + e^{2}}{c^{4} x^{4} + 2 \, c^{2} x^{2} + 1}\right ) - 4 \, \sqrt {e x^{2} + d} {\left (b \arctan \left (c x\right ) + a\right )}}{4 \, d x}, \frac {2 \, b c \sqrt {-d} x \arctan \left (\frac {\sqrt {-d}}{\sqrt {e x^{2} + d}}\right ) + \sqrt {-c^{2} d + e} b x \arctan \left (-\frac {{\left (c^{2} e x^{2} + 2 \, c^{2} d - e\right )} \sqrt {-c^{2} d + e} \sqrt {e x^{2} + d}}{2 \, {\left (c^{3} d^{2} - c d e + {\left (c^{3} d e - c e^{2}\right )} x^{2}\right )}}\right ) - 2 \, \sqrt {e x^{2} + d} {\left (b \arctan \left (c x\right ) + a\right )}}{2 \, d x}\right ] \]
[In]
[Out]
\[ \int \frac {a+b \arctan (c x)}{x^2 \sqrt {d+e x^2}} \, dx=\int \frac {a + b \operatorname {atan}{\left (c x \right )}}{x^{2} \sqrt {d + e x^{2}}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {a+b \arctan (c x)}{x^2 \sqrt {d+e x^2}} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {a+b \arctan (c x)}{x^2 \sqrt {d+e x^2}} \, dx=\int { \frac {b \arctan \left (c x\right ) + a}{\sqrt {e x^{2} + d} x^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \arctan (c x)}{x^2 \sqrt {d+e x^2}} \, dx=\int \frac {a+b\,\mathrm {atan}\left (c\,x\right )}{x^2\,\sqrt {e\,x^2+d}} \,d x \]
[In]
[Out]